# -*- coding = utf-8 -*-
# @Time : 2023/5/29 10:05
# @Author : GHHHHHHHHH
# @File : config.py
# @Software : PyCharm
# -*- coding = utf-8 -*-
# @Time : 2022/10/30 19:53
# @Author : GHHHHHHHHH
# @File : config.py
# @Software : PyCharm

""" 数据库配置 """
import random
import time

DIALECT = 'mysql'
DRIVER = 'pymysql'
USERNAME = 'root'
PASSWORD = 'Genghe020524.'
HOST = 'bj-cynosdbmysql-grp-11bdrjg0.sql.tencentcdb.com'
PORT = '20964'
DATABASE = 'car_master'
DB_URI = "mysql+pymysql://{username}:{password}@{host}:{port}/{db}?charset=utf8" \
    .format(username=USERNAME, password=PASSWORD, host=HOST, port=PORT, db=DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ECHO = True


# 数据库配置类
class Config(object):
    SQLALCHEMY_DATABASE_URI = DB_URI
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    # 是否开启数据库日志
    SQLALCHEMY_ECHO = False

class FTPConfig:
    FTP_IP = '101.200.182.134'
    FTP_PORT = 21
    USERNAME = 'picture'
    PASSWORD = 'LPWESAtGDzA7G3H3'
